export type initStateType = { id: number; task: string; isDone: boolean };

type FnType = (id: number) => void;
type taskFnType = (task: string) => void;

export type MainType = {
  lists: initStateType[];
  handleUpdateById: FnType;
  handleDelById: FnType;
};

export type FooterType = { type: string; setType: taskFnType };
export type headerType = { handleAdd: taskFnType };
export type handleAddType = taskFnType;
export type handleDelByIdType = FnType;
